package com.syyo.gulimall.auth.feign;

import com.syyo.common.domain.ResultVo;
import com.syyo.common.vo.MemberVo;
import com.syyo.gulimall.auth.vo.SocialUser;
import com.syyo.gulimall.auth.vo.UserLoginVo;
import com.syyo.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ author wang
 * @ date: 2021/4/15 18:02
 * @ Description:
 */
@FeignClient("gulimall-member")
public interface MemberFeign {

    @PostMapping("/member/member/regist")
    ResultVo regist(@RequestBody UserRegistVo req);

    @PostMapping("/member/member/login")
    ResultVo login(@RequestBody UserLoginVo req);

    @PostMapping("/member/member/auth/login")
    MemberVo authlogin(@RequestBody SocialUser req);
}
